const Mock = require('mockjs')
const data = Mock.mock({
  'list|6': [
    {
      title: '@ctitle(2)',
      id: '@id',
      'children|5-20': [
        {
          id: '@id',
          auth: '@cname',
          title: '@ctitle',
          datetime: '@datetime',
          description: '@cword(20,30)',
          image: '@image(120x80,@color,@name)',
        },
      ],
    },
  ],
  'totalTag|10': [
    {
      id: '@id',
      title: '@ctitle',
      'count|10-100': 1,
      image: '@image(50x50,@color,@cname)',
    },
  ],
  userList: [
    {
      id: '@id',
      nickname: '小三三',
      username: 'zhangsan',
      password: 'zhangsan',
      avator: "@image(100x100,@color,'三三')",
      'list|5-10': [
        {
          id: '@id',
          title: '@ctitle',
          'count|10-100': 1,
          image: '@image(50x50,@color,@cname)',
        },
      ],
    },
    {
      id: '@id',
      username: 'lisi',
      password: 'lisi',
      nickname: '小四',
      avator: "@image(100x100,@color,'lisi')",
      'list|5-10': [
        {
          id: '@id',
          title: '@ctitle',
          'count|10-100': 1,
          image: '@image(50x50,@color,@cname)',
        },
      ],
    },
  ],
  'searchList|100': [
    {
      id: '@id',
      title: '@ctitle',
      description: '@cword(20,30)',
      image: '@image(120x80,@color,@name)',
    },
  ],
})
module.exports = data
